//
//  WSDatePickerView.h
//  WSDatePicker
//
//  Created by iMac on 17/2/23.
//  Copyright © 2017年 zws. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum{
    EKDateStyleShowYearMonthDayHourMinute  = 0,
    EKDateStyleShowMonthDayHourMinute,
    EKDateStyleShowYearMonthDay,
    EKDateStyleShowMonthDay,
    EKDateStyleShowHourMinute
    
}EKDatePickerStyle;

typedef enum {
    EKDatePositionBottom = 0,
    EKDatePositionMiddel
    
}EKDatePickerPosition;


@interface EKDateTimePickerView : UIView

@property (nonatomic, assign) EKDatePickerStyle    datePickerStyle;
@property (nonatomic, strong) UIColor *themeColor;

@property (nonatomic, retain) NSDate *maxLimitDate;//限制最大时间（没有设置默认2049）
@property (nonatomic, retain) NSDate *minLimitDate;//限制最小时间（没有设置默认1970）

-(instancetype)initWithDatePosition:(EKDatePickerPosition)position CompleteBlock:(void(^)(NSDate *))completeBlock;

-(void) show;

//滚动到指定的时间
- (void) scrollToSepicefyDate:(NSDate *)date animated:(BOOL)animated;
@end

